@import "./assets/iconfont/iconfont.css";

body {
  margin: 0;
  padding: 0;
  background-color: #f4fafe;
}

a {
  font-weight: 400;
  text-decoration: inherit;
  cursor: pointer;
}

a:hover {
  opacity: 0.8;
}

p {
  margin: 0;
  img {
    max-width: 100%;
  }
}

.text-sm {
  font-size: 14px;
  line-height: 20px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.inline-flex {
  display: inline-flex;
}

.justify-center {
  justify-content: center;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgba(209, 213, 219, var(--tw-text-opacity));
}

.text-gray-normal {
  color: #666666;
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgba(107, 114, 128, var(--tw-text-opacity));
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.ml-10 {
  margin-left: 10px;
}

.mb-50 {
  margin-bottom: 50px;
}

.text-blue {
  color: #3ca7fa;
}

.hover\:text-blue-600:hover {
  color: #3ca7fa;
}

.h-5 {
  height: 1.25rem;
}

.float-left {
  width: 100%;
  height: auto;
  float: left;
}

.d-flex {
  display: flex;
  align-items: center;
}

.j-flex {
  display: flex;
  justify-content: center;
}

.d-j-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.j-r-flex {
  display: flex;
  justify-content: right;
}

.j-b-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-flex {
  display: flex;
  flex-direction: column;
}

.c-a-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mask {
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.ant-modal-content {
  padding: 30px !important;
}

.full-container {
  width: 100%;
  min-height: 600px;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.container {
  width: 1200px;
  min-height: 600px;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.messagePoint {
  width: 12px;
  height: 12px;
  position: absolute;
  left: 8px;
}
.messagePoint:after {
  content: "";
  margin: 3px;
  display: table;
  width: 6px;
  height: 6px;
  background-color: #ff4d4f;
  border-radius: 50%;
}

.header-menu {
  width: 100%;
  text-align: left;
  height: auto;
  .ant-menu-horizontal {
    border-bottom: none;
  }
  .ant-menu > .ant-menu-item {
    padding-top: 9px;
    padding-bottom: 9px;
    &:first-child {
      margin-left: -25px;
    }
    .ant-menu-submenu-title {
      font-size: 16px !important;
    }
  }
  .ant-menu > .ant-menu-item {
    font-size: 16px !important;
  }
}

.ant-menu-submenu-popup .ant-menu-vertical.ant-menu-sub {
  min-width: 120px;
  text-align: center;
}

.ant-menu-light.ant-menu-horizontal > .ant-menu-overflow-item::after {
  border: none;
}

.ant-menu-light.ant-menu-horizontal > .ant-menu-overflow-item:hover {
  color: #3ca7fa !important;
  .ant-menu-submenu-title {
    color: #3ca7fa !important;
  }
}

.bread-nav {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 14px;
  color: #999999;
  line-height: 16px;
  margin-top: 30px;
  margin-bottom: 30px;

  a {
    height: auto;
    font-size: 14px;
    font-weight: 400;
    color: #999999;
    line-height: 16px;
    margin-right: 6px;
    &:not(:first-of-type) {
      margin-left: 6px;
    }
  }
  span {
    flex: 1;
    height: auto;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }
}

.fix-nav {
  width: 100%;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.course-tabs {
  width: 1200px;
  margin: 0 auto;
  height: 72px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  padding: 28px 30px;
  border-radius: 0px 0px 8px 8px;
  .item-tab {
    min-width: 64px;
    height: 16px;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 16px;
    margin-right: 80px;
    cursor: pointer;
    position: relative;
    &.active {
      font-weight: 600;
      color: #3ca7fa;
    }
    .actline {
      width: 52px;
      height: 4px;
      background: #3ca7fa;
      position: absolute;
      left: 6px;
      top: 40px;
    }
  }
}

.member-tabs {
  width: 100%;
  height: 34px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  padding: 0px;
  margin-bottom: 30px;
  .item-tab {
    width: auto;
    height: 14px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 14px;
    margin-right: 50px;
    cursor: pointer;
    position: relative;
    text-align: center;
    &.active {
      font-weight: 600;
      color: #3ca7fa;
    }
    .actline {
      width: 56px;
      height: 4px;
      background: #3ca7fa;
      position: absolute;
      left: 0px;
      top: 29px;
    }
  }
}

.free-content {
  width: 100%;
  min-height: 72px;
  margin-bottom: 0px;
}

.md-content .ql-size-small {
  font-size: 0.75em;
}
.md-content .ql-size-large {
  font-size: 1.5em;
}
.md-content .ql-size-huge {
  font-size: 2.5em;
}
.md-content .ql-align-center {
  text-align: center;
}
.md-content .ql-align-right {
  text-align: right;
}
.md-content .ql-align-justify {
  text-align: justify;
}
.md-content .hljs-left {
  text-align: left;
}
.md-content .hljs-center {
  text-align: center;
}
.md-content .hljs-right {
  text-align: right;
}
.md-content .hljs-justify {
  text-align: justify;
}
.md-content .ql-video {
  display: block;
  width: 100%;
  height: 630px;
  margin: 0 auto;
}

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0px;
  font-weight: bold;
  color: black;
}
.md-content ul,
.md-content ol {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 15px;
  color: black;
}
.md-content ol li {
  counter-reset: myCounter;
  counter-increment: list-0;
}
.md-content ol li:not(.ql-direction-rtl)::before {
  counter-increment: myCounter;
  content: counter(myCounter) ". ";
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}
.md-content p code,
.md-content li code {
  font-size: 14px;
  word-wrap: break-word;
  padding: 2px 4px;
  border-radius: 4px;
  margin: 0 2px;
  color: #1e6bb8;
  background-color: rgba(27, 31, 35, 0.05);
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
  word-break: break-all;
}
.md-content sub,
sup {
  line-height: 0;
}
.md-content {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  word-spacing: 0px;
  letter-spacing: 0px;
  word-break: break-word;
  word-wrap: break-word;
  text-align: left;
  hr {
    height: 1px;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-top: 1px solid black;
  }
  em {
    font-style: italic;
    color: black;
  }
  img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    vertical-align: middle;
    border-style: none;
  }
  a {
    text-decoration: none;
    color: #1e6bb8;
    word-wrap: break-word;
    font-weight: bold;
    border-bottom: 1px solid #1e6bb8;
    &.anchor {
      display: none;
    }
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.17em;
  }
  h4 {
    font-size: 1em;
  }
  h5 {
    font-size: 0.83em;
  }
  h6 {
    font-size: 0.67em;
  }
  ul {
    list-style-type: disc;
    li {
      margin-top: 5px;
      margin-bottom: 5px;
      line-height: 26px;
      text-align: left;
      color: #333333;
      font-weight: 500;
    }
  }
  p {
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin: 0;
    line-height: 30px;
    color: #333333;
  }
  strong {
    font-weight: bold;
    color: #333333;
  }
  figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  figcaption {
    margin-top: 5px;
    text-align: center;
    color: #888;
    font-size: 14px;
  }
  pre {
    padding: 0 4px;
    .hljs {
      border-radius: 3px;
      font-size: 14px;
      line-height: 1.5;
    }
    .copied {
      display: none;
    }
  }
  blockquote {
    display: block;
    font-size: 0.9em;
    overflow: auto;
    border-left: 3px solid rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    color: #6a737d;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  table tr th:nth-of-type(n),
  table tr td:nth-of-type(n) {
    min-width: 85px;
  }
  table tr th,
  table tr td {
    font-size: 16px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    text-align: left;
  }
  table {
    display: table;
    text-align: left;
    tr {
      border: 0;
      border-top: 1px solid #ccc;
      background-color: white;
      th {
        font-weight: bold;
        background-color: #f0f0f0;
      }
    }
  }
}

#meedu-player-container {
  width: 900px;
  height: 506px;
  float: left;
}

.iframe-player-box {
  width: 900px;
  height: 506px;
  float: left;
}

.course-chapter-box {
  width: 300px;
  height: 506px;
  box-sizing: border-box;
  padding: 30px 10px 30px 30px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-box {
  width: 100%;
  height: 628px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 15px 15px 0px 15px;
  &.end {
    height: 549px;
  }

  .bullet-chat {
    width: 100%;
    height: auto;
    float: left;
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 15px;
    }
    &.active {
      display: flex;
      justify-content: center;
    }
    .addmore {
      display: inline-block;
      width: auto;
      height: auto;
      font-size: 13px;
      font-weight: 400;
      color: #666666;
      line-height: 18px;
      cursor: pointer;
      &:hover {
        opacity: 0.8;
      }
    }

    .alert-message {
      width: 100%;
      height: auto;
      float: left;
      text-align: center;

      .text-block {
        width: auto;
        height: auto;
        padding: 7px 12px;
        background: #cccccc;
        border-radius: 15px;
        display: inline-block;
        font-size: 12px;
        line-height: 12px;
        font-weight: 400;
        color: #ffffff;
      }
    }

    .nickname {
      width: 100%;
      height: auto;
      float: left;
      font-size: 13px;
      font-weight: 400;
      color: #666666;
      line-height: 18px;
      margin-bottom: 5px;
      text-align: left;
      &.teacher {
        width: auto;
        font-size: 12px;
        font-weight: 400;
        color: #ffffff;
        line-height: 12px;
        padding: 5px 10px;
        background: #3ca7fa;
        border-radius: 2px;
      }
    }

    .message-content {
      width: 100%;
      height: auto;
      float: left;
      display: flex;
      justify-content: space-between;
      .chat-content {
        width: auto;
        height: auto;
        float: left;
        background: #e1f1fd;
        box-sizing: border-box;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 400;
        color: #333333;
        line-height: 18px;
        word-break: break-all;
        text-align: left;
      }
    }
  }
}

.analysis-box {
  width: 100%;
  height: 100%;
  float: left;
  background-color: #fff;
  padding: 0px 30px 30px 30px;
  box-sizing: border-box;

  .answer-box {
    width: 100%;
    height: auto;
    float: left;
    background: #f4fafe;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 13px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .content {
      flex: 1;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      font-size: 14px;
      font-weight: 500;
      color: #333333;
      line-height: 24px;
      .answer {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-right: 50px;
        i {
          width: 4px;
          height: 18px;
          background: #04c877;
          border-radius: 2px;
          margin-right: 10px;
        }
      }
      .my-answer {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-right: 50px;
        i {
          width: 4px;
          height: 18px;
          background: #ff4d4f;
          border-radius: 2px;
          margin-right: 10px;
        }
      }
      .score {
        display: flex;
        flex-direction: row;
        align-items: center;
        i {
          width: 4px;
          height: 18px;
          background: #3ca7fa;
          border-radius: 2px;
          margin-right: 10px;
        }
      }
    }
    .button {
      width: auto;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 400;
      color: #04c877;
      line-height: 24px;
      cursor: pointer;
      .icon {
        width: 16px;
        height: 16px;
        margin-left: 5px;
      }
      &:hover {
        opacity: 0.8;
      }
    }
  }

  .remark-box {
    width: 100%;
    height: 100%;
    float: left;
    box-sizing: border-box;
    padding: 13px 20px;
    display: flex;
    flex-direction: row;
    background: #04c877;
    border-radius: 4px;
    margin-top: 20px;
    .left-remark {
      width: auto;
      height: auto;
      float: left;
      .tit {
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        line-height: 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-right: 10px;
        i {
          width: 4px;
          height: 18px;
          background: #ffffff;
          border-radius: 2px;
          margin-right: 10px;
        }
      }
    }

    .remark {
      flex: 1;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      line-height: 24px;
    }
  }
}

.content-render {
  width: 100%;
  float: left;
  height: auto;
  text-align: left;
  p {
    img {
      display: inline-block;
      max-width: 200px !important;
      margin: 5px 0px;
    }
  }
}

.images-render {
  width: 100%;
  float: left;
  height: auto;
  margin-top: 20px;
  display: grid;
  grid-row-gap: 30px;
  grid-column-gap: 50px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  .thumb-bar {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    float: left;
    overflow: hidden;
    cursor: pointer;
  }
  .iframe-bar {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    float: left;
    overflow: hidden;
    iframe {
      width: 200px;
      height: 200px;
    }
  }
}

ul,
li {
  list-style: none;
}

.clearfix:after {
  content: ".";
  height: 0;
  display: block;
  visibility: hidden;
  clear: both;
  overflow: hidden;
}

.cursor {
  cursor: pointer;
}

.cursor:hover {
  opacity: 0.8;
}

.clearfix {
  zoom: 1;
}

.page-wrapper {
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: center;
}

.h50 {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
}

.page-wrapper .page-tab li {
  float: left;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  box-sizing: border-box;
}

.page-wrapper .page-info {
  margin-right: 6px;
}

.page-wrapper .page-info .h50 {
  border: none;
  padding: 0;
}

.items-choose .h50 {
  padding: 0;
  border: none 0;
  border-top: 1px solid #eaedf1;
  border-bottom: 1px solid #eaedf1;
  box-sizing: border-box;
  padding: 0 6px;
}

.items-choose .items-show {
  height: 30px;
  width: 74px;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #eaedf1;
  position: relative;
}
.items-choose .items-show input {
  height: 100%;
  width: 100%;
  text-align: center;
}
.items-choose .items-show:after {
  content: "";
  position: absolute;
  height: 0;
  border: 4px solid transparent;
  border-top: 6px solid #c4ccc5;
  top: 50%;
  right: 10px;
  transform: translate3d(-50, -50, 0);
  cursor: pointer;
}

.items-choose .items-num {
  width: 100%;
  position: absolute;
  bottom: 42px;
  border: 1px solid #eaedf1;
  z-index: 100;
  background: #f5f7fa;
  z-index: 999;
}

.items-choose .items-num li {
  padding: 10px 0 10px 6px;
  font-size: 14px;
}

.page-wrapper .activePage {
  color: #3ca7fa;
}

.canNot {
  cursor: not-allowed;
  color: #ccc !important;
}
.btn-icon {
  width: 16px;
  height: 16px;
}
.page-wrapper button {
  font-size: 14px;
  color: #666;
  border: none;
}
.page-wrapper button:focus {
  outline: 0;
}
.chooseNum {
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.header-menu > .ant-menu-horizontal .ant-menu-item,
.header-menu > .ant-menu-horizontal .ant-menu-submenu {
  padding-inline: 25px;
}

.header-menu > .ant-menu-horizontal .ant-menu-submenu {
  display: flex;
  align-items: center;
}

.header-menu > .ant-menu-horizontal .ant-menu-submenu-title {
  display: flex;
  align-items: center;
  height: 21px;
  font-size: 16px;
}

.ant-modal-confirm-btns {
  .ant-btn-primary {
    background-color: #3ca7fa;
    &:hover {
      background-color: #3ca7fa;
      opacity: 0.8;
    }
  }
}
